import json


class UserInfo:

    def __init__(self, email, name, password, qq):
        self.email = email
        self.name = name
        self.password = password
        self.qq = qq

    def __str__(self):
        massage = "email:{},name:{},password:{},qq:{}".format(self.email, self.name, self.password, self.qq)
        return massage


file = open("C:\\json.txt", "r").read()
lists = json.loads(file)
users = []
for i in lists:
    user = UserInfo(i["email"], i['name'], i['password'], i['qq'])
    users.append(user)
for user in users:
    print(user)
